package cup.com.icss.dao;

import cup.com.icss.model.Dormitory;
import cup.com.icss.model.DormitoryExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface DormitoryMapper {
    int countByExample(DormitoryExample example);

    int deleteByExample(DormitoryExample example);

    int deleteByPrimaryKey(String id);

    int insert(Dormitory record);

    int insertSelective(Dormitory record);

    List<Dormitory> selectByExample(DormitoryExample example);

    Dormitory selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") Dormitory record, @Param("example") DormitoryExample example);

    int updateByExample(@Param("record") Dormitory record, @Param("example") DormitoryExample example);

    int updateByPrimaryKeySelective(Dormitory record);

    int updateByPrimaryKey(Dormitory record);
    
    List<Dormitory> dormitoryList(@Param("start") int pageNum,@Param("end") int pageSize,@Param("t") Dormitory record);
    
    List<Dormitory> dormitoryListSize(Dormitory record);
    
    Dormitory selectStudentIdObj(String studentId);
    
    List<Dormitory> selectDormitoryPersons(@Param("storiedBuilding") String storiedBuilding,@Param("dormitory") String dormitory);
    
    int deleteByStudentId(String studentId);
}